home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / DRVLIB.NIC / CTT20 / OEMSETUP.INF < prev    next >
Encoding:
INI File  |  1996-07-31  |  33.3 KB  |  1,338 lines

  1. ;***********************************************************************
  2. ;
  3. ; OEMSEUP.INF
  4. ;
  5. ;       T20XX network card and driver SETUP INF file.
  6. ;
  7. ; History:
  8. ; v1.01 Release with Help
  9. ;***********************************************************************
  10.  
  11. [Identification]
  12.     OptionType = NetAdapter
  13.  
  14. [PlatformsSupported]
  15.     ISA
  16.     EISA
  17.  
  18. [Options]
  19.     T20XX
  20.  
  21. ;***********************************************************************
  22. ; CONSTANTS FOR USING DIALOGS
  23. ;***********************************************************************
  24.  
  25. [FileConstants]
  26.  
  27.  
  28. GenericInfVersion  = " v1.01"
  29. GenericAdapterName = "Cabletron T20XX Adapter"
  30. GenericDriverName  = "Cabletron T20XX Driver"
  31. GenericSysName     = "T20N3.SYS"
  32. GenericName        = "T20XX"
  33.  
  34. ;
  35. ;  File names, etc.
  36. ;
  37. UtilityInf      = "UTILITY.INF"
  38. ParamInf        = "NCPARAM.INF"
  39. subroutineinf   = "SUBROUTN.INF"
  40. SoftwareType    = "driver"
  41. Exit_Code       = 0
  42.  
  43. ;
  44. ; EventLog Message File
  45. ;
  46. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  47. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  48.  
  49. ; Product Info
  50. ;
  51. Manufacturer    = "Microsoft"
  52. ProductMajorVersion     = "3"
  53. ProductMinorVersion     = "1"
  54. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  55.  
  56. ;
  57. ; Software
  58. ;
  59. ProductSoftwareName     = "T20XX"
  60. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\"$(GenericSysName)
  61. NetRuleSoftwareType     = "T20N3Sys ndisDriver T20XXDriver"
  62.  
  63. NetRuleSoftwareUse      = $(SoftwareType)
  64. NetRuleSoftwareBindForm = """T20N3Sys"" yes no container"
  65.  
  66. NetRuleSoftwareClass    = {"T20XXDriver basic"}
  67. NetRuleSoftwareBindable = {"T20XXDriver T20XXAdapter non exclusive 100"}
  68. ;
  69. ; Hardware
  70. ;
  71. ProductHardwareName        = "T20XX"
  72. NetRuleHardwareType        = "T20XX T20XXAdapter"
  73. NetRuleHardwareBindForm    = " yes yes container"
  74. NetRuleHardwareClass       = {"T20XXAdapter basic"}
  75.  
  76. ;
  77. ; Registry Key
  78. ;
  79. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  80. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  81.  
  82. [GeneralConstants]
  83. ;
  84. ;  Program flow control variables.
  85. ;
  86. from      = ""
  87. to        = ""
  88. ;
  89. ;  Return codes; Exit_Code is set to one of these
  90. ;
  91. ExitCodeOk     = 0
  92. ExitCodeCancel = 1
  93. ExitCodeFatal  = 2
  94.  
  95. KeyNull         = ""
  96. MAXIMUM_ALLOWED   = 33554432
  97. RegistryErrorIndex = NO_ERROR
  98. KeyProduct      = ""
  99. KeyParameters   = ""
  100.  
  101. TRUE            = 1
  102. FALSE           = 0
  103. NoTitle            = 0
  104.  
  105. ExitState   = "Active"
  106. OldVersionExisted = $(FALSE)
  107.  
  108. DriverPath      = $(!STF_NTPATH)\drivers
  109.  
  110. [date]
  111.     ; Now is a list which contains { Sec from 1-1-1970, Year, Month, Day, Hour,
  112.     ; Minute, Second }
  113.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  114.  
  115. [Identify]
  116.     ;
  117.     ;
  118.     read-syms Identification
  119.  
  120.     set Status     = STATUS_SUCCESSFUL
  121.     set Identifier = $(OptionType)
  122.     set Media      = #("Source Media Descriptions", 1, 1)
  123.  
  124.     Return $(Status) $(Identifier) $(Media)
  125.  
  126. [ReturnOptions]
  127.     ;
  128.     ;
  129.     set Status        = STATUS_FAILED
  130.     set OptionList     = {}
  131.     set OptionTextList = {}
  132.  
  133.     ;
  134.     ; Check if the language requested is supported
  135.     ;
  136.     set LanguageList = ^(LanguagesSupported, 1)
  137.     Ifcontains(i) $($0) in $(LanguageList)
  138.     ;
  139.     ; Check if the platforms requested is supported
  140.     ;
  141.     ifstr(i) $($1) == ""
  142.             goto returnoptions
  143.     endif
  144.  
  145.     set PlatformList = ^(PlatformsSupported, 1)
  146.     Ifcontains(i) $($1) in $(PlatformList)
  147.             goto returnoptions
  148.     else
  149.             set Status = STATUS_NOTSUPPORTED
  150.             goto finish_ReturnOptions
  151.     endif
  152.     else
  153.         set Status = STATUS_NOLANGUAGE
  154.         goto finish_ReturnOptions
  155.     endif
  156.  
  157.     ;
  158.     ; form a list of all the options and another of the text representing
  159.     ;
  160.  
  161. returnoptions = +
  162.     set OptionList     = ^(Options, 1)
  163.     set OptionTextList = ^(OptionsText$($0), 1)
  164.     set Status         = STATUS_SUCCESSFUL
  165.  
  166. finish_ReturnOptions = +
  167.     Return $(Status) $(OptionList) $(OptionTextList)
  168.  
  169. [InstallOption]
  170.     ;
  171.     ; Set default values for
  172.     ;
  173.     set Status   = STATUS_FAILED
  174.     ;
  175.     ; extract parameters
  176.     ;
  177.     set Option   = $($1)
  178.     set SrcDir   = $($2)
  179.     set AddCopy  = $($3)
  180.     set DoCopy   = $($4)
  181.     set DoConfig = $($5)
  182.  
  183.     ;
  184.     ; Check if the language requested is supported
  185.     ;
  186.     set LanguageList = ^(LanguagesSupported, 1)
  187.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  188.     Return STATUS_NOLANGUAGE
  189.     endif
  190.  
  191.     set-subst LF = "\n"
  192.  
  193.     read-syms GeneralConstants
  194.     read-syms FileConstants
  195.  
  196.     read-syms DialogConstants$(!STF_LANGUAGE)
  197.     ifstr(i) $(!NTN_Origination) == "NCPA"
  198.     set Continue = $(OK)
  199.     endif
  200.     read-syms FileConstants$(!STF_LANGUAGE)
  201.  
  202.     detect date
  203.  
  204.     set-title  $(FunctionTitle)
  205.  
  206.     set to   = Begin
  207.     set from = Begin
  208. ;
  209. ;  Assume all is well.
  210. ;
  211.     set CommonStatus = STATUS_SUCCESSFUL
  212.  
  213.     EndWait
  214.  
  215. ;
  216. ;   Set up the operation-mode-based variables and gaily welcome
  217. ;   the user.  If the "install mode" variable is improperly set,
  218. ;   assume this is a new installation.
  219. ;
  220.  
  221. Begin = +
  222.     Set ActivateDetection = FALSE
  223.  
  224.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  225.     set StartLabel = removeadapter
  226.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  227.     set StartLabel = UpgradeSoftware
  228.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  229.     set StartLabel = bindingadapter
  230.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  231. ;        set ActivateDetection = TRUE
  232.     set StartLabel = configureadapter
  233.     ;
  234.     ;   You cannot config the software component
  235.     ;
  236.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  237.         Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  238.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  239.         goto ShellCodeError
  240.         endif
  241.         set Error = $($R0)
  242.         set from = end
  243.         set to = end
  244.         goto nonfatalinfo
  245.     endif
  246.     else
  247. ;        set ActivateDetection = TRUE
  248.     set StartLabel = installadapter
  249.     set OEM_ABANDON_OPTIONS = {}
  250.     set OEM_ABANDON_SOFTWARE = FALSE
  251.     set OEM_ABANDON_ON = TRUE
  252.     endif
  253.  
  254.  
  255.  
  256.     ;  set the default values
  257.  
  258.     ; IRQ Level = 5
  259.     set IRQValue = *($(IRQList), 3)
  260.  
  261.     ; IOBase Address = 0x0a20
  262.     set IOBaseAddrValue = *($(IOBaseAddrList), 1)
  263.  
  264.     ; DMAChannel = 5
  265.     set DMAChannelValue = *($(DMAChannelList), 1)
  266.  
  267.     ; Packet Size =4500
  268.     set PacketsizeValue = *($(PacketsizeList), 4)
  269.  
  270.     ; Transceiver - UTP, Line Speed - 16, Timing - Default
  271.     set RadioIn = { 1, 4, 5 }
  272.  
  273.     set CardTypeValue = 0
  274.  
  275.     Set from = $(fatal)
  276.     Set to = $(fatal)
  277.     Goto $(StartLabel)
  278.  
  279. ;-----------------------------------------------
  280. ; Installation Section
  281. ;-----------------------------------------------
  282.  
  283. installadapter = +
  284. ;
  285. ;   First, check whether the same version of the software exists
  286. ;
  287.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  288.  
  289.     Ifstr $(KeyProduct) != $(KeyNull)
  290.     ;
  291.     ; Same version already existed in the local machine
  292.     ; Popup the dialog and ask the user whether he wants to continue
  293.     ;
  294.     CloseRegKey $(KeyProduct)
  295.  
  296.     ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  297.        ;
  298.        ; Cannot Install the same software again
  299.        ;
  300.        Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  301.            $(ProductVersion)
  302.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  303.            goto ShellCodeError
  304.        endif
  305.  
  306.        goto end
  307.     else
  308.        ;
  309.        ; Add a new adapter card?
  310.        ;
  311.        Shell $(UtilityInf), CardExistedDlg
  312.  
  313.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  314.            goto ShellCodeError
  315.        endif
  316.  
  317.        ifstr(i) $($R1) != "OK"
  318.            goto end
  319.        endif
  320.        set OldVersionExisted = $(TRUE)
  321.     endif
  322.     endif
  323.  
  324. ;
  325. ;  dll load addition
  326. ;
  327.     Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  328.  
  329.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  330.     Goto ShellCodeError
  331.     Else-Ifstr(i) $($R0) == STATUS_FAILED
  332.     Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  333.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  334.         goto ShellCodeError
  335.     endif
  336.     set Error = $($R0)
  337.     Goto fatal
  338.     Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  339.     Goto successful
  340.     Endif
  341.  
  342.     Set SrcDir = $($R1)
  343.  
  344.     SetHelpFile "t20.hlp" 0 0
  345.  
  346.     install "Install-Dll"
  347.  
  348.     goto adaptersetup
  349.  
  350. ;-----------------------------------------------
  351. ; Configuration Section
  352. ;-----------------------------------------------
  353. ;
  354. ;   Get the current values of all the parameters
  355. ;
  356. configureadapter = +
  357.     Ifstr $(KeyProduct) == $(KeyNull)
  358.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  359.     Ifstr $(KeyProduct) == $(KeyNull)
  360.         set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  361.         goto fatalregistry
  362.     Endif
  363.     Endif
  364.  
  365.     ;
  366.     ; Get the other parameters;  they're attached to the service parameters key
  367.     ;
  368.     Shell $(UtilityInf) FindService, $(KeyProduct)
  369.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  370.     Goto ShellCodeError
  371.     Endif
  372.     Ifstr(i) $($R0) != NO_ERROR
  373.     Goto fatalregistry
  374.     endif
  375.  
  376.     Set KeyParameters = $($R2)
  377.  
  378.     ;
  379.     ;  We don't need the services key, so close it.
  380.     ;
  381.     CloseRegKey $($R1)
  382.  
  383.     Ifstr $(KeyParameters) == $(KeyNull)
  384.     set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  385.     goto fatalregistry
  386.     endif
  387.  
  388.     set OldVersionExisted = $(TRUE)
  389.  
  390.     set ValueName = ""
  391.     set ValueData = ""
  392.     set ValueStr  = ""
  393.     set ValueList = {}
  394.  
  395.  
  396.     ;
  397.     ; Get the old values
  398.     ;
  399.     EnumRegValue $(KeyParameters) ValueList
  400.  
  401.     ForListDo $(ValueList)
  402.     set ValueItem = $($)
  403.     set ValueName = *($(ValueItem),1)
  404.     set ValueData = *($(ValueItem),4)
  405.     ifstr(i) $(ValueName) == "InterruptNumber"
  406.         set IRQValueIndex = $(ValueData)
  407.     else-ifstr(i) $(ValueName) == "IoBaseAddress"
  408.         set IOBaseAddrIndex = $(ValueData)
  409.     else-ifstr(i) $(ValueName) == "DMAChannel"
  410.         set DMAChannelIndex = $(ValueData)
  411.             else-ifstr(i) $(ValueName) == "Packetsize"
  412.                 set PacketsizeIndex = $(ValueData)
  413.     else-ifstr(i) $(ValueName) == "Transceiver"
  414.         set Transceiver = $(ValueData)
  415.     else-ifstr(i) $(ValueName) == "LineSpeed"
  416.         set LineSpeed = $(ValueData)
  417.     else-ifstr(i) $(ValueName) == "Timing"
  418.         set Timing = $(ValueData)
  419.     else-ifstr(i) $(ValueName) == "NetworkAddress"
  420.         set NetworkAddress = $(ValueData)
  421.  
  422.     endif
  423.  
  424.     EndForListDo
  425.  
  426. ;    Ifint $(CardTypeValue) == 0
  427. ;       Set RadioIn = {1}
  428. ;    Else-Ifint $(CardTypeValue) == 1
  429. ;       Set RadioIn = {2}
  430. ;    Else-Ifint $(CardTypeValue) == 2
  431. ;       Set RadioIn = {3}
  432. ;    Endif
  433.  
  434.     set IRQValue = *($(IRQList), ~($(IRQValues),$(IRQValueIndex)))
  435.     ifstr(i) $(IRQValue) == ""
  436.     set IRQValue = *($(IRQList), 3)
  437.     endif
  438.  
  439.     set DMAChannelValue = *($(DMAChannelList), ~($(DMAChannelValues),$(DMAChannelIndex)))
  440.     ifstr(i) $(DMAChannelValue) == ""
  441.        set DMAChannelValue = *($(DMAChannelList), 1)
  442.     endif
  443.  
  444.     set IOBaseAddrValue = *($(IOBaseAddrList), ~($(IOBaseAddrValues),$(IOBaseAddrIndex)))
  445.     ifstr(i) $(IOBaseAddrValue) == ""
  446.     set IOBaseAddrValue = *($(IOBaseAddrList), 1)
  447.     endif
  448.  
  449.     set PacketsizeValue = *($(PacketsizeList), ~($(PacketsizeValues),$(PacketsizeIndex)))
  450.     ifstr(i) $(PacketsizeValue) == ""
  451.     set PacketsizeValue = *($(PacketsizeList), 4)
  452.     endif
  453.  
  454. ; set radio  values
  455.  
  456.     Ifint $(Transceiver) == 1
  457.         set Rad1 = 2
  458.     else 
  459.         set Rad1 = 1
  460.     endif
  461.  
  462.     Ifint $(LineSpeed) == 1
  463.         set Rad2 = 3
  464.     else
  465.         set Rad2 = 4
  466.     endif
  467.  
  468.     Ifint $(Timing) == 1
  469.         set Rad3 = 6
  470.     else
  471.         set Rad3 = 5
  472.     endif
  473.  
  474.     set RadioIn = {$(Rad1), $(Rad2), $(Rad3)}
  475.  
  476.     ;  Save the settings as they were read from the Registry.
  477.  
  478. ;    Shell $(ParamInf) Param_SaveValues
  479. ;    Set CurrParamSettings = $($R0)
  480. ;
  481. ;   Put up the adapter configuration dialog if necessary.
  482. ;
  483. ;   Note that $(CurrParamSettings) has the old known parameter values.
  484. ;
  485. adaptersetup = +
  486.  
  487.  
  488. ;    Shell "" DebugConfiguration "before displaying dialog"
  489.  
  490.     Set from = adapteroptions
  491.  
  492.  
  493. adapteroptions = +
  494.  
  495.  
  496.     LoadLibrary "Disk 1" $(DialogDllName) hLib
  497.  
  498.     read-syms FileDependentDlg$(!STF_LANGUAGE)
  499.  
  500.     ui start "InputDlg"  $(hLib)
  501.  
  502.     set ExitButton      = $(ButtonPressed)
  503.  
  504.     FreeLibrary $(hLib)
  505.  
  506.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  507.         set IRQValueIndex = $(Combo1Out)
  508.         set IOBaseAddrIndex = $(Combo2Out)
  509.         set DMAChannelIndex = $(Combo3Out)
  510.                         set PacketsizeIndex = $(Combo4Out)
  511.                         set NetworkAddress = *($(EditTextOut),1)
  512.         set ExitButton      = $(ButtonPressed)
  513.  
  514.                 IfContains "1" IN $(RadioOut)
  515.                     set Transceiver = 0
  516.                 else-IfContains "2" IN $(RadioOut)
  517.                     set Transceiver = 1
  518.                 endif
  519.                 IfContains "3" IN $(RadioOut)
  520.                     set LineSpeed = 1
  521.                 else-IfContains "4" IN $(RadioOut)
  522.                     set LineSpeed = 0
  523.                 endif
  524.                 IfContains "5" IN $(RadioOut)
  525.                     set Timing = 0
  526.                 else-IfContains "6" IN $(RadioOut)
  527.                     set Timing = 1
  528.                 endif
  529.  
  530.         ;set TransceiverIndex = *($(RadioOut),1)
  531.  
  532.         ;Ifint $(CardTypeIndex) == 1
  533.             ;Set CardTypeValue = 0
  534.         ;else-Ifint $(CardTypeIndex) == 2
  535.             ;Set CardTypeValue = 1
  536.         ;else-Ifint $(CardTypeIndex) == 3
  537.             ;Set CardTypeValue = 2
  538.         ;Endif
  539.  
  540.  
  541.  
  542.         ui pop 1
  543. ;               goto nextstep
  544.     else-ifstr(i) $(DLGEVENT) == "EXIT"
  545.         set CommonStatus = STATUS_USERCANCEL
  546.         ui pop 1
  547.         goto end
  548.     else
  549.         ;
  550.         ; Unknow command
  551.         ;
  552.         ui pop 1
  553.  
  554.         goto end
  555.     endif
  556.  
  557. ;
  558. ;   If installing, go create the necessary keys;
  559. ;   if configuring, they're already open.
  560. ;
  561. skipoptions =+
  562.  
  563.     ifint $(OldVersionExisted) == $(TRUE)
  564.     ifstr(i) $(!NTN_InstallMode) == configure
  565.         goto writeparameters
  566.     endif
  567.     endif
  568.     StartWait
  569.     ;
  570.     ; Add Software Component
  571.     ;
  572.     ifint $(OldVersionExisted) == $(FALSE)
  573.  
  574.     ifstr(i) $(!NTN_InstallMode) == "install"
  575.        Ifstr(i) $(DoCopy) == "YES"
  576.  
  577.           Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  578.  
  579.           Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  580.           Goto ShellCodeError
  581.           Else-Ifstr(i) $($R0) == STATUS_FAILED
  582.           Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  583.           ifint $($ShellCode) != $(!SHELL_CODE_OK)
  584.               goto ShellCodeError
  585.           endif
  586.           set Error = $($R0)
  587.           Goto fatal
  588.           Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  589.           Goto successful
  590.           Endif
  591.  
  592.           Set SrcDir = $($R1)
  593.  
  594.        Endif
  595.  
  596.        install "Install-Option"
  597.  
  598.        ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  599.           Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  600.           ifint $($ShellCode) != $(!SHELL_CODE_OK)
  601.           goto ShellCodeError
  602.           endif
  603.           set Error = $($R0)
  604.           goto fatal
  605.        endif
  606.     endif
  607.  
  608.  
  609.  
  610.     Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  611.         $(ProductSoftwareName), +
  612.         $(ProductSoftwareName), +
  613.         $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  614.         $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  615.         $(NetEventDLL)
  616.  
  617.     Set OEM_ABANDON_SOFTWARE = TRUE
  618.  
  619.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  620.         goto ShellCodeError
  621.     endif
  622.  
  623.     set RegistryErrorIndex = $($R0)
  624.     set KeyProduct      = $($R1)
  625.     Set SoftNetRulesKey = $($R2)
  626.     CloseRegKey $($R3)
  627.     CloseRegKey $($R4)
  628.     CloseRegKey $($R5)
  629.  
  630.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  631.         EndWait
  632.         CloseRegKey $(KeyProduct)
  633.         CloseRegKey $(SoftNetRulesKey)
  634.         goto fatalregistry
  635.     endif
  636.  
  637.     set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  638.                {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  639.                {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  640.                {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  641.                {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  642.                {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  643.                {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  644.  
  645.     Shell  $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
  646.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  647.         goto ShellCodeError
  648.     endif
  649.  
  650.     set RegistryErrorIndex = $($R0)
  651.  
  652.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  653.         EndWait
  654.         CloseRegKey $(KeyProduct)
  655.         CloseRegKey $(SoftNetRulesKey)
  656.         goto fatalregistry
  657.     endif
  658.  
  659.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  660.                 {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  661.                 {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  662.                 {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  663.                 {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  664.                 {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  665.  
  666.     Shell  $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
  667.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  668.         goto ShellCodeError
  669.     endif
  670.  
  671.     set RegistryErrorIndex = $($R0)
  672.  
  673.     CloseRegKey $(KeyProduct)
  674.     CloseRegKey $(SoftNetRulesKey)
  675.  
  676.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  677.         EndWait
  678.         goto fatalregistry
  679.     endif
  680.     endif
  681. ;
  682. ;   Create the HARDWARE\Netcard region and its corresponding service
  683. ;
  684.     Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  685.  
  686.     ifint $($R4) != -1
  687.     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  688.     endif
  689.  
  690.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  691.     goto ShellCodeError
  692.     endif
  693.  
  694.     set RegistryErrorIndex = $($R0)
  695.  
  696.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  697.     EndWait
  698.     CloseRegKey $($R1)
  699.     CloseRegKey $($R2)
  700.     CloseRegKey $($R3)
  701.     goto fatalregistry
  702.     endif
  703.  
  704.     set KeyParameters = $($R3)
  705.     set KeyAdapterRules = $($R2)
  706.     set AdapterNumber = $($R4)
  707.  
  708.     set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  709.                {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
  710.                {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
  711.                {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  712.                {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  713.                {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  714.  
  715.     Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  716.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  717.     goto ShellCodeError
  718.     endif
  719.  
  720.     CloseRegKey $($R1)
  721.  
  722.     set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  723.     set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  724.  
  725.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  726.             {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  727.             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  728.             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  729.  
  730.     Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  731.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  732.     goto ShellCodeError
  733.     endif
  734.  
  735.     set RegistryErrorIndex = $($R0)
  736.  
  737.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  738.     EndWait
  739.     CloseRegKey $(KeyParameters)
  740.     CloseRegKey $(KeyAdapterRules)
  741.     goto fatalregistry
  742.     endif
  743.  
  744.     CloseRegKey $(KeyAdapterRules)
  745.  
  746.     goto writeparameters
  747. ;
  748. ;   REQUIRED:   $(KeyParameters) contains service Parameters key handle
  749. ;
  750. writeparameters = +
  751.     Shell $(UtilityInf), GetBusTypeNum
  752.     set BusTypeNum = $($R1)
  753.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  754.     goto ShellCodeError
  755.     endif
  756.  
  757. ;    Set NewValueList = {{Transceiver,$(NoTitle),$(!REG_VT_DWORD),$(TransceiverValue)},+
  758. ;                       {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  759. ;                       {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  760. ;                       {MemoryMapped,$(NoTitle),$(!REG_VT_DWORD),$(MappedValue)},+
  761. ;                       {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+
  762. ;                       {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)}}
  763. ;
  764.  
  765.     set DMAChannelValue = *($(DMAChannelValues), ~($(DMAChannelList),$(DMAChannelIndex)))
  766.  
  767.     set IRQValue = *($(IRQValues), ~($(IRQList),$(IRQValueIndex)))
  768.  
  769.     set IOBaseAddrValue = *($(IOBaseAddrValues), ~($(IOBaseAddrList),$(IOBaseAddrIndex)))
  770.  
  771.     set PacketsizeValue = *($(PacketsizeValues), ~($(PacketsizeList),$(PacketsizeIndex)))
  772.  
  773.     set NetworkAddress = *($(EditTextOut),1)
  774.  
  775.  
  776.     set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),0},+
  777.             {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  778.              {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  779.             {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+
  780.                        {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)},+
  781.                              {DMAChannel,$(NoTitle),$(!REG_VT_DWORD),$(DMAChannelValue)},+
  782.             {Packetsize,$(NoTitle),$(!REG_VT_DWORD),$(PacketsizeValue)},+
  783.             {NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)},+
  784.                                {Transceiver,$(NoTitle),$(!REG_VT_DWORD),$(Transceiver)},+
  785.                                {LineSpeed,$(NoTitle),$(!REG_VT_DWORD),$(LineSpeed)},+           
  786.                                {Timing,$(NoTitle),$(!REG_VT_DWORD),$(Timing)}}
  787.  
  788.  
  789.     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  790.  
  791.     CloseRegKey $(KeyParameters)
  792.  
  793.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  794.     goto ShellCodeError
  795.     endif
  796.  
  797.     set RegistryErrorIndex = $($R0)
  798.  
  799.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  800.     goto fatalregistry
  801.     endif
  802.  
  803.     EndWait
  804.  
  805.     goto successful
  806.  
  807. ;-----------------------------------------------
  808. ; Binding section
  809. ;-----------------------------------------------
  810. bindingadapter =+
  811.     set Error = "Binding: Sorry, not yet implemented."
  812.     goto fatal
  813.  
  814. ;-----------------------------------------------
  815. ; Removeadapter section
  816. ;-----------------------------------------------
  817.  
  818. removeadapter = +
  819.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  820.     ; Remove Software Component
  821.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  822.         $(ProductSoftwareName)
  823.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  824.         goto ShellCodeError
  825.     endif
  826.  
  827.     set RegistryErrorIndex = $($R0)
  828.  
  829.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  830.         goto fatalregistry
  831.     endif
  832.     else
  833.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  834.         $(ProductSoftwareName), $(!NTN_RegBase)
  835.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  836.         goto ShellCodeError
  837.     endif
  838.  
  839.     set RegistryErrorIndex = $($R0)
  840.  
  841.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  842.         goto fatalregistry
  843.     endif
  844.     endif
  845.  
  846.     goto end
  847.  
  848. ;-----------------------------------------------
  849. ; Upgrade Software section
  850. ;-----------------------------------------------
  851.  
  852. UpgradeSoftware = +
  853.  
  854.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  855.     ; Upgrade software component
  856.     ;
  857.     ; see whether the same version exist or not
  858.     ;
  859.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  860.  
  861.     Ifstr $(KeyProduct) != $(KeyNull)
  862.         GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  863.         set Version = *($(VersionInfo), 4)
  864.  
  865.         ;
  866.         ; Update the binaries
  867.         ;
  868.         Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  869.  
  870.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  871.         goto ShellCodeError
  872.         endif
  873.  
  874.         set !UG_Filename = $($R0)
  875.  
  876.         ifstr(i) $(!UG_Filename) != ""
  877.         install "Install-Update"
  878.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  879.             goto fatal
  880.         endif
  881.         endif
  882.  
  883.         ; Upgrade the version number
  884.         ;
  885.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  886.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  887.  
  888.         ;
  889.         ; do nothing for update
  890.         ;
  891.         ifint $(Version) != $(ProductVersion)
  892.            ;
  893.            ; If the major version number is not the same,
  894.            ; it is major upgrade. So let Upgrade the product
  895.            ;
  896.            ;
  897.            ; make other upgrade change if necessary
  898.            ;
  899.         endif
  900.         CloseRegKey $(KeyProduct)
  901.     else
  902.         ;
  903.         ; Cannot Open software key, goto ERROR
  904.         ;
  905.         goto fatalregistry
  906.     endif
  907.     else
  908.     ;
  909.     ; upgrade/update hardware component
  910.     ; There is no different between upgrade and update for hardware
  911.     ; component
  912.     ;
  913.     ; 1. Get the Service Name
  914.     ; 2. Change the NetRule section if necessary
  915.     ;
  916.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  917.           $(MAXIMUM_ALLOWED) NetworkCardKey
  918.     Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  919.         ;
  920.         ; Get Service name
  921.         ;
  922.         GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  923.         set ServiceName = *($(ServiceNameInfo), 4)
  924.  
  925.         ;
  926.         ; Change the NetRule if necessary
  927.         ;
  928.         OpenRegKey $(NetworkCardKey) "" "NetRules" +
  929.         $(MAXIMUM_ALLOWED) NetRuleKey
  930.         Ifstr(i) $(NetRuleKey) != $(KeyNull)
  931.         ;
  932.         ; Make the change....
  933.         ;
  934.         else
  935.         ;
  936.         ; Error, cannot open net rules key
  937.         ;
  938.         goto fatalregistry
  939.         endif
  940.  
  941.         CloseRegKey $(NetRules)
  942.         CloseRegKey $(NetworkCardKey)
  943.     else
  944.         ;
  945.         ; Error, cannot open network card key
  946.         ;
  947.         goto fatalregistry
  948.     endif
  949.     ;
  950.     ; 3. Change the service section of the hardware. i.e.,
  951.     ;    ParameterName change, value change, etc.
  952.     ;
  953.     OpenRegKey $(!REG_H_LOCAL) "" +
  954.           $(!NTN_ServiceBase)"\"$(ServiceName) +
  955.           $(MAXIMUM_ALLOWED) ServiceKey
  956.  
  957.     Ifstr(i) $(ServiceKey) != $(KeyNull)
  958.         ;
  959.         ; Get the ServiceKey to change the Start value
  960.         ; or Type value. Or open Parameters key to
  961.         ; change the hardware parameters if necessary.
  962.         ;
  963.         CloseRegKey $(ServiceKey)
  964.     else
  965.         ;
  966.         ; Error, cannot open network card key
  967.         ;
  968.         goto fatalregistry
  969.     endif
  970.     endif
  971.  
  972.     goto end
  973.     ;
  974.     ; End of Upgrade Software
  975.     ;
  976.  
  977. ;
  978. ;  Escape hatches
  979. ;
  980. successful = +
  981.     goto end
  982.  
  983. abandon = +
  984.     ForListDo $(OEM_ABANDON_OPTIONS)
  985.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  986.         $(ProductSoftwareName), $($)
  987.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  988.         goto ShellCodeError
  989.     endif
  990.  
  991.     set RegistryErrorIndex = $($R0)
  992.  
  993.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  994.         goto fatalregistry
  995.     endif
  996.     EndForListDo
  997.  
  998.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  999.     ; Remove Software Component
  1000.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  1001.         $(ProductSoftwareName), FALSE
  1002.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1003.         goto ShellCodeError
  1004.     endif
  1005.  
  1006.     set RegistryErrorIndex = $($R0)
  1007.  
  1008.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1009.         goto fatalregistry
  1010.     endif
  1011.     endif
  1012.  
  1013.     goto end
  1014.  
  1015. ;
  1016. ; warning display
  1017. ;
  1018. warning = +
  1019.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  1020.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1021.     goto ShellCodeError
  1022.     endif
  1023.     ifstr(i) $($R1) == "OK"
  1024.     goto $(to)
  1025.     else-ifstr(i) $($R1) == "CANCEL"
  1026.     goto $(from)
  1027.     else
  1028.     goto "end"
  1029.     endif
  1030. ;
  1031. ; non fatal error display
  1032. ;
  1033. nonfatalinfo = +
  1034.     Set Severity = STATUS
  1035.     Set CommonStatus = STATUS_USERCANCEL
  1036.     goto nonfatalmsg
  1037. nonfatal = +
  1038.     Set Severity = NONFATAL
  1039.     goto nonfatalmsg
  1040. nonfatalmsg = +
  1041.     ifstr(i) $(Error) == ""
  1042.     Set Severity = NONFATAL
  1043.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  1044.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1045.         goto ShellCodeError
  1046.     endif
  1047.     set Error = $($R0)
  1048.     endif
  1049.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  1050.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1051.     goto ShellCodeError
  1052.     endif
  1053.     ifstr(i) $($R1) == "OK"
  1054.     goto $(from)
  1055.     else
  1056.     goto "end"
  1057.     endif
  1058.  
  1059. ;
  1060. ;  Registry is broken
  1061. ;
  1062. fatalregistry = +
  1063.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  1064.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1065.     goto ShellCodeError
  1066.     endif
  1067.     set Error = $($R0)
  1068.     goto fatal
  1069. ;
  1070. ;  Netcard detection failure
  1071. ;
  1072. fataldetect = +
  1073.     Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
  1074.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1075.     goto ShellCodeError
  1076.     endif
  1077.     set Error = $($R0)
  1078.     Goto fatal
  1079. ;
  1080. ; fatal error display
  1081. ;
  1082. fatal = +
  1083.     ifstr(i) $(Error) == ""
  1084.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  1085.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1086.         goto ShellCodeError
  1087.     endif
  1088.     set Error = $($R0)
  1089.     endif
  1090.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  1091.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1092.     goto ShellCodeError
  1093.     endif
  1094.  
  1095.     goto setfailed
  1096.  
  1097. ;
  1098. ;  Shelling error
  1099. ;
  1100. ShellCodeError = +
  1101.     set DlgType      = "MessageBox"
  1102.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  1103.     set STF_MB_TEXT  = $(ShellCodeErrorText) 
  1104.     set STF_MB_TYPE  = 1
  1105.     set STF_MB_ICON  = 3
  1106.     set STF_MB_DEF   = 1
  1107.     ui start "Error Message"
  1108.     goto setfailed
  1109.  
  1110. setfailed = +
  1111.     set CommonStatus = STATUS_FAILED
  1112.     ;
  1113.     ; if OEM_ABANDON_ON == TRUE, then remove the registry entries
  1114.     ;
  1115.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  1116.     set OEM_ABANDON_ON = FALSE
  1117.     goto abandon
  1118.     endif
  1119.     goto end
  1120.  
  1121. end = +
  1122.     goto term
  1123.  
  1124. term = +
  1125.  
  1126.     Return $(CommonStatus)
  1127.  
  1128. [DebugConfiguration]
  1129.  
  1130.     Set InfName = "OEMsetup.INF"
  1131.  
  1132.     return
  1133.  
  1134.  
  1135. ;***************************************************************
  1136. ;  INSTALL SECTIONS
  1137. ;***************************************************************
  1138. [Install-Option]
  1139.     set STF_VITAL = ""
  1140.  
  1141.     ifstr(i) $(AddCopy) == "YES"
  1142.  
  1143.     ;
  1144.     ; Add the files to the copy list
  1145.     ;
  1146.     ;  BUGBUG: eliminate the "nt2" in the next line when Sunil fixes
  1147.     ;      the other INF files
  1148.     ;
  1149.     AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1150.  
  1151.     endif
  1152.  
  1153.     ifstr(i) $(DoCopy) == "YES"
  1154.  
  1155.        ;
  1156.        ; Copy files in the copy list
  1157.        ;
  1158.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1159.        CopyFilesInCopyList
  1160.  
  1161.     endif
  1162.  
  1163.     Exit
  1164.  
  1165. [Install-Update]
  1166.    set STF_VITAL        = ""
  1167.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  1168.    ;set STF_VERSION     = "YES"
  1169.  
  1170.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1171.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1172.  
  1173.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1174.    CopyFilesInCopyList
  1175.  
  1176.    exit
  1177.  
  1178. [Install-Dll]
  1179.    set STF_VITAL        = ""
  1180.    AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1181.    CopyFilesInCopyList
  1182.    exit
  1183.  
  1184. [Source Media Descriptions]
  1185.     1  = "Windows NT Setup Disk #1"  
  1186.     2  = "Windows NT Setup CD-ROM Disk"  
  1187.     5  = "Cabletron Drivers Disk"
  1188.     99  = "LMHOST disk"
  1189.  
  1190. [Signature]
  1191.     FileType = MICROSOFT_DRVLIB_FILE
  1192. [GetSignature]
  1193.     read-syms Signature
  1194.     return $(FileType)
  1195.  
  1196. [ProductType]
  1197. STF_PRODUCT  = Winnt
  1198. STF_PLATFORM = I386
  1199.  
  1200. [Files-Inf]
  1201. 5,      oemsetup.inf,    SIZE=1000,     RENAME=$(!UG_Filename)
  1202.  
  1203. [Files-T20XX]
  1204. 5, T20N3.SYS , SIZE=88888
  1205.  
  1206. [Files-Dll]
  1207. 5, ctrondlg.dll,  SIZE=999
  1208. 5, t20.hlp SIZE=9999
  1209.  
  1210. [LanguagesSupported]
  1211.     ENG
  1212.  
  1213. [OptionsTextENG]
  1214.     T20XX     = "Cabletron T20XX Token-Ring Adapter"
  1215.  
  1216. [FileConstantsENG]
  1217. ProCaption   = "Windows NT Setup"
  1218. ProCancel    = "Cancel"
  1219. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  1220.            "Are you sure you want to cancel copying files?"
  1221. ProCancelCap = "Network Setup Message"
  1222. ProText1     = "Copying:"
  1223. ProText2     = "To:"
  1224.  
  1225. FunctionTitle   = $(GenericAdapterName)" Card Setup"$(GenericInfVersion)
  1226.  
  1227. ProductSoftwareDescription = $(GenericDriverName)
  1228. ProductHardwareDescription = $(GenericAdapterName)
  1229.  
  1230. ProductSoftwareTitle =       $(GenericDriverName)
  1231. ProductHardwareT20XXTitle =       $(GenericAdapterName)
  1232. ProductHardwareT20XXDescription =       $(GenericAdapterName)
  1233.  
  1234. DialogDllName   = "ctrondlg.dll"
  1235.  
  1236.  
  1237. IRQList  = ^(IRQChoices, 1)
  1238. IRQValues = ^(IRQChoices, 2)
  1239.  
  1240. IOBaseAddrList = ^(IOBaseAddrChoices, 1)
  1241. IOBaseAddrValues = ^(IOBaseAddrChoices, 2)
  1242.  
  1243. DMAChannelList = ^(DMAChannelChoices,1)
  1244. DMAChannelValues = ^(DMAChannelChoices,2)
  1245.  
  1246. PacketsizeList = ^(PacketsizeChoices,1) 
  1247. PacketsizeValues = ^(PacketsizeChoices,2)
  1248.  
  1249. [DialogConstantsENG]
  1250. Help        = "&Help"
  1251. Exit        = "Cancel"
  1252. OK          = "OK"
  1253. HelpContext = 0
  1254. Continue    = "Continue"
  1255. Cancel      = "Cancel"
  1256.  
  1257. [FileDependentDlgENG]
  1258.  
  1259. DlgText = "Please select values for the following fields:"
  1260.  
  1261. DlgType = "RadioCombination"
  1262. DlgTemplate = "T20XX"
  1263. Caption = $(FunctionTitle)
  1264.  
  1265. CBOptionsGreyed = {}
  1266. NotifyFields = {NO, NO}
  1267. HelpContext = 0
  1268.  
  1269. Edit1Label = "Alt Network &Address:"
  1270. EditTextLim = 17
  1271. EditTextIn = $(NetworkAddress)
  1272.  
  1273. Combo1Label = "&IRQ Level:"
  1274. Combo2Label = "I/O &Port:"
  1275. Combo3Label = "&DMA Channel:"
  1276. Combo4Label = "&Max Frame Size:"
  1277.  
  1278. Combo1List = $(IRQList)
  1279. Combo1Out  = $(IRQValue)
  1280.  
  1281. Combo2List = $(IOBaseAddrList)
  1282. Combo2Out  = $(IOBaseAddrValue)
  1283.  
  1284. Combo3List = $(DMAChannelList)
  1285. Combo3Out  = $(DMAChannelValue)
  1286.  
  1287. Combo4List = $(PacketsizeList)
  1288. Combo4Out = $(PacketsizeValue)
  1289.  
  1290. ComboListItemsIn  = {Combo1List, Combo2List, Combo3List, Combo4List}
  1291. ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out, Combo4Out}
  1292.  
  1293. ;EditTextIn = {"",""}
  1294.  
  1295. ;EditTextLim = {"",""}
  1296.  
  1297. Group1 = "Transceiver"
  1298. Group2 = "Line Speed"
  1299. Group3 = "Timing"
  1300.  
  1301. Radio1 = "&UTP"
  1302. Radio2 = "&STP"
  1303.  
  1304. Radio3 = "&4"
  1305. Radio4 = "&16"
  1306.  
  1307. Radio5 = "D&efault"
  1308. Radio6 = "A<ernate"
  1309.  
  1310. [IRQChoices]
  1311. IRQ_1 = "3",3
  1312. IRQ_2 = "4",4
  1313. IRQ_3 = "5",5
  1314. IRQ_4 = "7",7
  1315. IRQ_5 = "9",9
  1316. IRQ_6 = "10",10
  1317. IRQ_7 = "11",11
  1318. IRQ_8 = "12",12
  1319. IRQ_9 = "14",14
  1320. IRQ_10 = "15",15
  1321.  
  1322. [IOBaseAddrChoices]
  1323. IOBase_1  = "0x0A20",2592
  1324. IOBase_2  = "0x0A80",2688
  1325. IOBase_3  = "0x1A20",6688
  1326. IOBase_4  = "0x1A80",6784
  1327.  
  1328. [DMAChannelChoices]
  1329. DMA_1 = "5",5
  1330. DMA_2 = "6",6
  1331. DMA_3 = "7",7
  1332.  
  1333. [PacketsizeChoices]
  1334. Packetsize_1 = "1500",1500
  1335. Packetsize_2 = "2048",2048
  1336. Packetsize_3 = "4096",4096
  1337. Packetsize_4 = "4500",4500
  1338.